package edu.sctu.renpingan.day20150512.text2;

/**
 * Created by user18 on 2015/5/12.
 */
public class TextFour extends TextOne {


    public TextFour(TextThere[] textTheres) {
        super(textTheres);
    }


    @Override
    public void getSysyTem() {

        for(int i = 0;i<10;i++){

            if (textTheres[i].getGrade() > 60 && textTheres[i].getName().equals("king"))
            {
                System.out.println(textTheres[i].getName());
            }
        }
    }
}
